package com.sky.common.generate.core;

public class FieldInfo {

    /**
     * 字段名
     **/
    private String tableName;
    /**
     * 字段名
     **/
    private String columnName;
    /**
     * 是否为空
     **/
    private boolean isNull;
    /**
     * 是否为主键
     **/
    private boolean isPrimary;
    /**
     * 是否唯一
     **/
    private boolean isUnique;
    /**
     * 备注
     **/
    private String comment;

    /**
     * Java数据类型
     **/
    private String JavaDataType;
    /**
     * Java字段名
     **/
    private String javaColumnName;
    /**
     * Java是否根据该字段生成查询方法
     **/
    private boolean generateMethod;
    /**
     * Java字段名
     **/
    private String columnNames;
    /**
     * Java 表别名
     **/
    private String alias;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public boolean isNull() {
        return isNull;
    }

    public void setNull(boolean isNull) {
        this.isNull = isNull;
    }

    public boolean isPrimary() {
        return isPrimary;
    }

    public void setPrimary(boolean isPrimary) {
        this.isPrimary = isPrimary;
    }

    public boolean isUnique() {
        return isUnique;
    }

    public void setUnique(boolean isUnique) {
        this.isUnique = isUnique;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getJavaDataType() {
        return JavaDataType;
    }

    public void setJavaDataType(String javaDataType) {
        JavaDataType = javaDataType;
    }

    public String getJavaColumnName() {
        return javaColumnName;
    }

    public void setJavaColumnName(String javaColumnName) {
        this.javaColumnName = javaColumnName;
    }

    public boolean isGenerateMethod() {
        return generateMethod;
    }

    public void setGenerateMethod(boolean generateMethod) {
        this.generateMethod = generateMethod;
    }

    public String getColumnNames() {
        return columnNames;
    }

    public void setColumnNames(String columnNames) {
        this.columnNames = columnNames;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

}
